if (device == wd->touch_master)
return;
- if (wd->pointer_grab_window)
+ if (wd->grab_cursor)
cursor = wd->grab_cursor;
/* Setting the cursor to NULL means that we should use
evtime,
FALSE);
- g_set_object (&wayland_seat->grab_cursor, cursor);
+ gdk_wayland_seat_set_global_cursor (seat, cursor);
g_set_object (&wayland_seat->cursor, cursor);
gdk_wayland_device_update_window_cursor (wayland_seat);
}
_gdk_wayland_display_deliver_event (device->display, event);
}
+void
+gdk_wayland_seat_set_global_cursor (GdkSeat *seat,
+ GdkCursor *cursor)
+{
+ GdkWaylandSeat *wayland_seat = GDK_WAYLAND_SEAT (seat);
+ GdkDevice *pointer;
+
+ pointer = gdk_seat_get_pointer (seat);
+
+ g_set_object (&wayland_seat->grab_cursor, cursor);
+ gdk_wayland_device_set_window_cursor (pointer,
+ gdk_wayland_device_get_focus (pointer),
+ NULL);
+}
+
struct wl_data_device *
gdk_wayland_device_get_data_device (GdkDevice *gdk_device)
{
EGLSurface gdk_wayland_window_get_dummy_egl_surface (GdkWindow *window,
EGLConfig config);
+void gdk_wayland_seat_set_global_cursor (GdkSeat *seat,
+ GdkCursor *cursor);
+
#endif /* __GDK_PRIVATE_WAYLAND_H__ */